#pragma once


#include "ScriptCompiler/AST/ExpressionNode.h"

//indexer in sentence, like: [1,2,3] 
class CSentenceIndexerNode : public CExpressionNode
{
public:
    CSentenceIndexerNode(std::weak_ptr<CScriptFileContext> InFile)
    : CExpressionNode(InFile,EASTNodeType::SentenceIndexer)
    {
    }

    std::shared_ptr<CScriptToken> LeftBracket;

    TVector<std::shared_ptr<CExpressionNode>> Indexers;

    std::shared_ptr<CScriptToken> RightBracket;

    
    virtual void DebugPrint(int32_t InDepth) override;

    virtual std::shared_ptr<CScriptToken> GetFirstToken() override;

};